//jquery
var $upFile = $('<input type="file" name="addMoneyImg" accept="image/*"/>')
    
$upFile.click()

$upFile.on("change",function() {
 
	var file = $upFile[0].files[0] //所选文件
	
	//验证
	if(file.size>1048576){
		mui.alert("您选择的图片太大，不能超过1M","提示信息");
		return;
	}
	  
	var formDate = new FormData()
	formDate.append("filename",file)
	
	console.log(formDate)
}








